module.exports = function(sequelize, DataTypes) {
  var Setting = sequelize.define(
    'Setting',
    {
      key: {
        type: DataTypes.STRING(50),
        comment: '键'
      },
      value: {
        type: DataTypes.TEXT,
        comment: '值'
      }
    },
    {
      tableName: 'settings',
      timestamps: false,
      indexes: [{ fields: ['key'] }],
      comment: '设置信息表'
    }
  )

  return Setting
}
